#include "app_device.h"
#include "app_mqtt.h"
#include "app_pool.h"
#include <unistd.h>
#include "app_bt.h"
#include <unistd.h>



int main(int argc, char const *argv[])
{
    
    //一系列初始化 
    app_mqtt_init();

    app_pool_init();

    app_device_t *device= app_device_init();
   // app_serial_init(device);
    app_bt_init(device); 

    // 启动设备
     app_device_start();

    while(1)
    {
        sleep(1);
    }

    return 0;
}
